package sqlToGUI.charts.helperUtilities;


import java.awt.event.MouseEvent;

import javax.swing.event.MouseInputAdapter;


/**Helper class for knowing where to place the coordinates on
 * the distance map. Just click, click - and record :D */
public class MouseClickDetector extends MouseInputAdapter {

	private static long start;
	private static long end;
	
	public void mouseClicked(MouseEvent e){
		//System.out.println("x=" + e.getX() + " y=" + e.getY());
	}
	
	public void mouseEntered(MouseEvent e) {
		start = System.currentTimeMillis();
	}
	
	public void mousePressed(MouseEvent e) {
		System.out.println("Press");
		
	}
	
	public void mouseReleased(MouseEvent e) {
		System.out.println("Release");
		end = System.currentTimeMillis();
		System.out.println(end-start);
	}
	
}
